$(document).ready(function() {
	
	$("#contentIframe", parent.document.body).attr("src",
			JSP_PRE_URL+"welcome");
	// 显示商品管理
	$("#foodManageButton").on("click", function() {
		showFoodManage();
		
	});
	
	// 显示生产计划
	$("#productionPlanManageButton").on("click", function() {
		showProductionPlanManage();
	});
	
	// 显示库存管理
	$("#stockManageButton").on("click", function() {
		showStockManage();
	});
	
	// 显示记录查询
	$("#recordButton").on("click", function() {
		showSearchRecord();
	});
	
	// 数据分析
	$("#dataAnalyzeButton").on("click", function() {
		$("#menuIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"dataAnalyzeMenu");
	});
	
	// 系统管理
	$("#systemManageButton").on("click", function() {
		$("#menuIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"systemManageMenu");
	});
	
});

function showSearchRecord() {
	$("#menuIframe", parent.document.body).attr("src",
			JSP_PRE_URL+"recordMenu");

}

function showStockManage() {
	$("#menuIframe", parent.document.body).attr("src",
			JSP_PRE_URL+"stockManageMenu");
}


function showProductionPlanManage() {
	$("#menuIframe", parent.document.body).attr("src",
			JSP_PRE_URL+"productionPlanManageMenu");

}

function showFoodManage() {
	$("#menuIframe", parent.document.body).attr("src",
			JSP_PRE_URL+"foodManageMenu");

}